/* JH 数据可视化仪表板样式 - 个性化增强版 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 主题变量 */
:root {
    /* 浅色主题 */
    --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-secondary: #ffffff;  /* 改为不透明的白色 */
    --bg-card: #ffffff;
    --bg-form: #ffffff;  /* 新增表单专用背景 */
    --bg-input: #ffffff;  /* 新增输入框专用背景 */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: rgba(255, 255, 255, 0.2);
    --border-light: #e0e0e0;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 30px rgba(102, 126, 234, 0.3);
}

/* 深色主题 */
.dark-theme {
    --bg-primary: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --bg-secondary: #2c3e50;  /* 改为不透明 */
    --bg-card: #34495e;
    --bg-form: #34495e;  /* 新增深色主题表单背景 */
    --bg-input: #455a64;  /* 新增深色主题输入框背景 */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: #444444;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 5px 30px rgba(52, 152, 219, 0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

/* 头部导航样式 */
.dashboard-header {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h1 {
    color: #667eea;
    font-size: 1.8rem;
    font-weight: 600;
}

.header-left h1 i {
    margin-right: 0.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    padding-right: 1rem;
    border-right: 1px solid var(--border-light);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--border-light);
    transform: scale(1.1);
}

/* 配置面板样式 */
.config-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.config-panel.active {
    right: 0;
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.config-header h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
}

.config-content {
    padding: 1rem;
}

.config-section {
    margin-bottom: 2rem;
}

.config-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
}

/* 主题选项 */
.theme-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.theme-btn {
    padding: 0.8rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-btn:hover,
.theme-btn.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

/* 图表配置列表 */
.chart-config-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-config-item {
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-secondary);
}

.chart-config-item h5 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.layout-options {
    display: flex;
    gap: 0.5rem;
}

/* 主要内容区域 */
.dashboard-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* 概览卡片样式 */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.overview-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.card-content h3 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.metric-change {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.change-positive {
    color: #10b981;
}

.change-negative {
    color: #ef4444;
}

.change-neutral {
    color: var(--text-secondary);
}

/* 图表区域样式 */
.charts-section {
    margin-bottom: 2rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.chart-card {
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    position: relative;
}

.chart-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.chart-card.sortable-ghost {
    opacity: 0.5;
    background: var(--border-light);
}

.chart-card.sortable-chosen {
    transform: scale(1.05);
    z-index: 1000;
}

.chart-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(102, 126, 234, 0.02) 100%);
    border-radius: 8px 8px 0 0;
}

.chart-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.chart-title-row h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.chart-title-row h3 i {
    color: var(--primary-color);
}

.chart-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.chart-selectors {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.chart-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-type-selector,
.chart-dimension-selector {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.chart-type-selector label,
.chart-dimension-selector label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-type-select,
.dimension-select {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.chart-type-select:hover,
.dimension-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.chart-type-select:focus,
.dimension-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.drag-handle {
    cursor: move;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.drag-handle:hover {
    opacity: 1;
    background-color: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.chart-actions .btn {
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.chart-actions .btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.chart-container {
    padding: 1rem;
    height: auto;
    min-height: 300px;
    max-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-container canvas {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
}

/* 数据表格增强样式 */
.data-table-section {
    margin-bottom: 2rem;
}

.table-card {
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.table-header h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.advanced-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-group select,
.filter-group input {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.salary-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.salary-range input {
    width: 100px;
}

.search-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-group input {
    width: 250px;
}

.action-group {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.table-container {
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.data-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    position: sticky;
    top: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.data-table th:hover {
    background: var(--border-light);
}

.data-table th i {
    margin-left: 0.5rem;
    opacity: 0.6;
}

.data-table tr:hover {
    background: var(--bg-secondary);
}

.action-btn {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
}

/* 增强分页样式 */
.pagination-enhanced {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pagination-info select {
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background: var(--bg-card);
    color: var(--text-primary);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.page-number {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.page-number:hover,
.page-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.loading-spinner p {
    font-size: 1.2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-main {
        padding: 1rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .overview-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .chart-controls-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .chart-selectors {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .chart-type-selector,
    .chart-dimension-selector {
        width: 100%;
    }
    
    .chart-type-select,
    .dimension-select {
        min-width: auto;
        width: 100%;
    }
    
    .chart-actions {
        justify-content: center;
        width: 100%;
    }
    
    .config-panel {
        width: 100%;
        right: -100%;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-enhanced {
        flex-direction: column;
        text-align: center;
    }
    
    .search-group input {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .chart-header {
        padding: 0.5rem 0.75rem;
    }
    
    .chart-title-row h3 {
        font-size: 0.9rem;
    }
    
    .chart-title-row h3 i {
        font-size: 0.8rem;
    }
    
    .chart-controls-row {
        justify-content: center;
    }
    
    .overview-cards {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chart-card,
    .overview-card {
    animation: fadeIn 0.5s ease;
}

/* 滚动条样式 */
.table-container::-webkit-scrollbar,
.config-panel::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track,
.config-panel::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.table-container::-webkit-scrollbar-thumb,
.config-panel::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover,
.config-panel::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* 焦点和无障碍样式 */
.btn:focus,
select:focus,
input:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .dashboard-header,
    .config-panel,
    .chart-controls,
    .pagination-enhanced {
        display: none;
    }
    
    .chart-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* 搜索容器样式 */
.search-container {
    margin-bottom: 1.5rem;
}

.search-input-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 2;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--border-light);
    border-radius: 25px;
    font-size: 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #5a6fd8;
    transform: translateY(-50%) scale(1.05);
}

/* 标签筛选器样式 */
.tag-filters {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
    }
    
.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h5 {
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-section h5 i {
    color: #667eea;
        font-size: 0.8rem;
    }
    
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    user-select: none;
}

.filter-tag:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.filter-tag.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.filter-tag i {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* 薪资筛选器样式 */
.salary-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.salary-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.salary-inputs input {
    width: 120px;
        padding: 0.5rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.salary-inputs input:focus {
    outline: none;
    border-color: #667eea;
}

.salary-inputs span {
    color: var(--text-muted);
    font-weight: 500;
}

/* 筛选器操作区域 */
.filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #667eea;
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.active-filter-chip .remove-filter {
    background: none;
    border: none;
    color: white;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.active-filter-chip .remove-filter:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 按钮样式改进 */
.btn.btn-outline {
    background: transparent;
    border: 2px solid var(--border-light);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.btn.btn-outline:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tag-filters {
        padding: 1rem;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .salary-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .salary-inputs {
        justify-content: center;
    }
}

/* 新增筛选器展开/折叠样式 */
.filter-toggle-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.filter-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.filter-toggle-btn.active {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.filter-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    min-width: 18px;
    text-align: center;
    display: none; /* 默认隐藏，没有筛选器时不显示 */
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.filter-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.filters-panel {
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filters-container {
    padding: 20px;
}

/* 标签式筛选器样式 */
.filter-section {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-section-title i {
    color: #667eea;
    font-size: 16px;
}

.tag-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.filter-tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.filter-tag:hover::before {
    left: 100%;
}

.filter-tag.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.filter-tag.active::before {
    display: none;
}

/* 改进的输入框样式 */
.filter-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.salary-range-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.salary-range-inputs input {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-input) !important;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.salary-range-inputs input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.range-separator {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    padding: 0 4px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    flex: 1;
    padding: 10px 50px 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-input) !important;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* 改进的操作按钮样式 */
.filter-actions {
    display: flex;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--border-light);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filters-container {
        padding: 15px;
    }
    
    .filter-section-title {
        font-size: 13px;
    }
    
    .tag-filter-group {
        gap: 6px;
    }
    
    .filter-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .filter-input-group {
        gap: 12px;
    }
    
    .salary-range-inputs {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .salary-range-inputs input {
        min-width: unset;
    }
    
    .range-separator {
        display: none;
    }
    
    .filter-actions {
        justify-content: center;
        gap: 8px;
    }
    
    .btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .filter-tag {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .filter-section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .search-input-wrapper input {
        padding: 8px 40px 8px 10px;
        font-size: 13px;
    }
    
    .search-btn {
        right: 6px;
        padding: 4px 6px;
    }
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 14px;
}

.filter-label i {
    color: #667eea;
}

.salary-apply-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.salary-apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.salary-separator {
    color: var(--text-muted);
    font-weight: bold;
}

.filter-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
    margin-top: 15px;
    flex-wrap: wrap;
}

.reset-filters-btn, .close-filters-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-filters-btn {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
}

.close-filters-btn {
    background: var(--border-light);
    color: var(--text-secondary);
}

.reset-filters-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

.close-filters-btn:hover {
    background: var(--text-muted);
    color: white;
}

.active-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.active-filter-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 12px;
    animation: fadeIn 0.3s ease;
}

.remove-filter {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.2s ease;
}

.remove-filter:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 活跃筛选标签显示样式 */
.active-filters-display {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    animation: slideDown 0.3s ease;
}

.active-filters-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.active-filters-header i {
    margin-right: 8px;
    color: #667eea;
}

.active-filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    animation: fadeIn 0.3s ease;
}

.active-filter-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.active-filter-tag .filter-label {
    margin-right: 5px;
    opacity: 0.8;
}

.active-filter-tag .remove-filter {
    margin-left: 8px;
    padding: 2px 4px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s ease;
}

.active-filter-tag .remove-filter:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 独立搜索框样式 */
.search-section {
    margin-bottom: 15px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.search-section .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.search-section .search-input-wrapper input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 25px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-section .search-input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    background: var(--bg-card);
}

.search-section .search-btn {
    position: absolute;
    right: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.search-section .search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.search-section .search-btn i {
    font-size: 14px;
}

/* 移动端搜索框适配 */
@media (max-width: 768px) {
    .search-section {
        padding: 12px;
    }
    
    .search-section .search-input-wrapper {
        max-width: 100%;
    }
    
    .search-section .search-input-wrapper input {
        padding: 10px 45px 10px 12px;
        font-size: 13px;
    }
    
    .search-section .search-btn {
        padding: 6px 8px;
        right: 5px;
    }
} 

/* 筛选器标签页样式 */
.filter-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 20px;
}

.filter-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.filter-tab:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.filter-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: var(--bg-secondary);
}

.filter-tab i {
    font-size: 16px;
}

.filter-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.filter-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 薪资范围提示样式 */
.salary-range-hints {
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.salary-range-hints small {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.salary-range-hints i {
    color: #667eea;
}

/* 响应式设计改进 */
@media (max-width: 768px) {
    .filter-tabs {
        flex-wrap: wrap;
    }
    
    .filter-tab {
        min-width: 100px;
        padding: 10px 15px;
        font-size: 13px;
    }
} 

/* ===========================================
   主标签页系统样式
   =========================================== */

/* 主标签页导航 */
.main-tabs-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 73px; /* 考虑header高度 */
    z-index: 999;
    backdrop-filter: blur(10px);
}

.tabs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 0;
}

.main-tab {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.main-tab i {
    font-size: 1.1rem;
}

.main-tab:hover {
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.1);
}

.main-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.main-tab.active::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px 2px 0 0;
}

/* 标签页内容 */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* 功能容器样式 */
.feature-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.feature-header {
    text-align: center;
    margin-bottom: 3rem;
}

.feature-header h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-header h2 i {
    color: #667eea;
    margin-right: 0.5rem;
}

.feature-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===========================================
   自身分析页面样式
   =========================================== */

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.analysis-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.analysis-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.analysis-card.full-width {
    grid-column: 1 / -1;
}

.analysis-card .card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.analysis-card .card-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.analysis-card .card-header h3 i {
    color: #667eea;
    margin-right: 0.5rem;
}

/* 上传区域样式 */
.skill-upload-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.upload-area {
    border: 2px dashed var(--border-light);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-area i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* 竞争力指标样式 */
.competitiveness-metrics {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.metric-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--border-light);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 6px;
    transition: width 0.8s ease;
}

.metric-value {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* 占位符内容样式 */
.placeholder-content {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.placeholder-content i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.placeholder-content p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===========================================
   智能匹配页面样式
   =========================================== */

.matching-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.preference-settings {
    background: var(--bg-form);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.preference-settings h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.4rem;
}

.preference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.preference-item label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.preference-item select, 
.preference-item input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-input) !important;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.preference-item select:focus,
.preference-item input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.salary-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.salary-range input {
    flex: 1;
}

.salary-range span {
    color: var(--text-secondary);
    font-weight: 500;
}

.matching-results {
    background: var(--bg-form);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.matching-results h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.4rem;
}

/* ===========================================
   面试策略页面样式
   =========================================== */

.strategy-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.strategy-input {
    background: var(--bg-form);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.input-group select {
    width: 100%;
    max-width: 300px;
    padding: 0.8rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-input) !important;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.strategy-output {
    background: var(--bg-form);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.strategy-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.strategy-tab {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.strategy-tab:hover {
    color: var(--text-primary);
}

.strategy-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.strategy-tab-content {
    display: none;
}

.strategy-tab-content.active {
    display: block;
}

/* ===========================================
   AI助手页面样式
   =========================================== */

.chat-interface {
    background: var(--bg-form);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.chat-container {
    height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: var(--bg-secondary);
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ai-message .message-content {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: #764ba2;
}

.message-content p {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.message-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.message-content li {
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.chat-input-area {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-form);
}

.quick-questions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.quick-question {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-question:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.chat-input-box {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.chat-input-box input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 25px;
    background: var(--bg-input) !important;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input-box input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===========================================
   响应式设计
   =========================================== */

@media (max-width: 1024px) {
    .feature-container {
        padding: 1.5rem;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .preference-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tabs-container {
        padding: 0 1rem;
        overflow-x: auto;
    }
    
    .main-tab {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .main-tab span {
        display: none;
    }
    
    .feature-header h2 {
        font-size: 1.8rem;
    }
    
    .feature-container {
        padding: 1rem;
    }
    
    .chat-container {
        height: 500px;
    }
    
    .quick-questions {
        display: none;
    }
}

/* ===========================================
   自身分析模块样式
   =========================================== */

/* 分析方式选择器 */
.analysis-method-selector {
    margin-bottom: 2rem;
}

.method-tabs {
    display: flex;
    gap: 1rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.method-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.method-tab:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.method-tab.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.method-tab i {
    font-size: 1.2rem;
}

/* 分析方式内容区域 */
.analysis-method-content {
    display: none;
}

.analysis-method-content.active {
    display: block;
}

/* 上传区域样式 */
.upload-section {
    margin-bottom: 2rem;
}

.upload-card {
    background: var(--bg-form);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px dashed var(--border-light);
    transition: all 0.3s ease;
}

.upload-header {
    text-align: center;
    margin-bottom: 2rem;
}

.upload-header h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.upload-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 2px dashed var(--border-light);
    border-radius: 8px;
    background: var(--bg-input) !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.03);
}

.upload-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.upload-text {
    margin-bottom: 1.5rem;
}

.upload-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.upload-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
}

/* 上传进度 */
.upload-progress {
    text-align: center;
    padding: 1rem;
}

.upload-progress .progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.upload-progress .progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 手动填写表单样式 */
.manual-form-section {
    background: var(--bg-form);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
}

.manual-resume-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group label i {
    color: #667eea;
    width: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-input) !important;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* 技能输入区域 */
.skills-input-area {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-input) !important;
    padding: 1rem;
}

.skills-input-area input {
    border: none;
    background: transparent;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 30px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #667eea;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.skill-tag i {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.skill-tag i:hover {
    opacity: 1;
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* 分析结果区域 */
.analysis-results-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.results-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 技能分析结果 */
.skill-match-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 500;
    color: var(--text-primary);
}

.skill-score {
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.skill-score.excellent {
    background: #d4edda;
    color: #155724;
}

.skill-score.good {
    background: #fef3cd;
    color: #856404;
}

.skill-score.average {
    background: #f8d7da;
    color: #721c24;
}

.skill-match-bar {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.skill-match-progress {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.skill-match-progress.excellent {
    background: linear-gradient(90deg, #28a745, #20c997);
    box-shadow: inset 0 0 6px rgba(32,201,151,0.35);
}

.skill-match-progress.good {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
    box-shadow: inset 0 0 6px rgba(253,126,20,0.35);
}

.skill-match-progress.average {
    background: linear-gradient(90deg, #dc3545, #e83e8c);
    box-shadow: inset 0 0 6px rgba(232,62,140,0.35);
}

/* 推荐职位样式（新版卡片网格） */
.job-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.25s ease;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.job-card-title { display: flex; align-items: center; gap: 8px; }
.job-card-title h4 { margin: 0; font-size: 1rem; color: var(--text-primary); }
.job-badge { background: #e0e7ff; color: #4338ca; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.job-match { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 12px; }

.job-card-company { display:flex; align-items:center; gap:8px; color: var(--text-secondary); margin: 6px 0; }
.job-logo { width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--border-light); }

.job-card-meta { display:flex; flex-wrap: wrap; gap: 8px 12px; color: var(--text-muted); font-size: 12px; margin-bottom: 8px; }
.job-card-meta i { color: #667eea; margin-right: 4px; }

.job-card-tags { display:flex; flex-wrap: wrap; gap:6px; margin-bottom: 10px; }
.job-tag { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; padding: 2px 8px; border-radius: 999px; font-size: 12px; }

.job-card-actions { display:flex; justify-content: flex-end; gap: 6px; }
.job-card-actions .active { filter: saturate(1.2) brightness(0.95); border-color: #16a34a; }

/* 旧样式兼容占位，保留但不再使用 */
.recommended-position-item { display:none; }
.position-header { display:none; }
.position-details { display:none; }
.match-score { display:none; }

/* 小图表容器 */
.mini-chart { position: relative; width: 100%; height: 220px; }

/* 雷达容器微调 */
#capabilityRadarContainer { min-height: 320px; }
#capabilityRadarContainer canvas { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08)); }

/* 技能建议样式 */
.suggestion-section {
    margin-bottom: 1.5rem;
}

.suggestion-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.strength-tags,
.missing-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.strength-tag {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.missing-skill-tag {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 职业发展建议样式 */
.career-suggestion-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.suggestion-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    color: #667eea;
}

.suggestion-content {
    flex: 1;
}

.suggestion-content p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

/* 无数据提示 */
.no-data {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
}

/* 响应式设计 - 自身分析模块 */
@media (max-width: 768px) {
    .method-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .method-tab {
        justify-content: flex-start;
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .position-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .career-suggestion-item {
        flex-direction: column;
        text-align: center;
    }
    
    .suggestion-icon {
        align-self: center;
    }
} 

/* 图表展开按钮样式 */
.expand-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.expand-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.expand-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.expand-btn i {
    font-size: 12px;
}

/* 放大按钮样式 */
.expand-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
    transition: all 0.2s ease;
}

.expand-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

/* 深色主题适配 */
.dark-theme .expand-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.dark-theme .expand-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* 图表控制按钮组样式增强 */
.chart-controls {
    gap: 8px;
    flex-wrap: wrap;
}

.chart-controls .btn {
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
}

/* 添加动画效果 */
.chart-card {
    transition: all 0.3s ease;
}

.chart-container canvas {
    transition: all 0.3s ease;
}





/* 响应式图表网格 - 在原有基础上扩展 */

@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        min-height: 250px;
        max-height: 400px;
    }
    
    .chart-modal-container {
        min-height: 300px;
        max-height: 60vh;
    }
}

/* ===== 对比模态 ===== */
.compare-modal-content { max-width: 1100px; width: 90vw; }
.compare-toolbar { display:flex; justify-content: space-between; align-items:center; margin-bottom: 10px; }
.compare-table-wrapper { overflow: auto; max-height: 70vh; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--border-color); padding: 8px 10px; text-align: left; vertical-align: top; }
.compare-table .row-label { width: 120px; color: var(--text-secondary); background: var(--panel-alt-bg); position: sticky; left: 0; z-index: 1; }
.compare-table td.diff { background: rgba(239, 68, 68, 0.08); }
.load-more-wrapper { display: flex; justify-content: center; margin-top: 12px; }

/* ===== 图表模态框样式增强 ===== */
.chart-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.chart-modal-content {
    background: white;
    border-radius: 16px;
    width: 95%;
    max-width: 1800px;
    max-height: 95vh;
    height: 95vh;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.chart-modal.show .chart-modal-content {
    transform: scale(1) translateY(0);
}

/* 全屏模式 */
.chart-modal.fullscreen {
    background-color: rgba(0, 0, 0, 0.95);
}

.chart-modal.fullscreen .chart-modal-content {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    min-height: 100vh;
}

.chart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    position: relative;
    z-index: 1;
}

.chart-modal.fullscreen .chart-modal-header {
    border-radius: 0;
}

.chart-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-modal-header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-modal-close,
.chart-modal-fullscreen,
.chart-modal-download {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.chart-modal-close:hover,
.chart-modal-fullscreen:hover,
.chart-modal-download:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.chart-modal-close:hover {
    transform: scale(1.1) rotate(90deg);
}

/* 工具提示 */
.chart-modal-header-controls button[title]::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.chart-modal-header-controls button[title]:hover::after {
    opacity: 1;
}

.chart-modal-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fafbfc;
}

.chart-modal-toolbar {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.chart-modal-toolbar .toolbar-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    border-right: 1px solid #e5e7eb;
}

.chart-modal-toolbar .toolbar-group:last-child {
    border-right: none;
}

.chart-modal-toolbar label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    white-space: nowrap;
}

.chart-modal-toolbar select {
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-modal-toolbar select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chart-modal-toolbar .btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.chart-modal-toolbar .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.chart-modal-toolbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.chart-modal-toolbar .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.chart-modal-toolbar .btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.chart-modal-container {
    flex: 1;
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 25px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.chart-modal-container canvas {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
}

/* 图表尺寸控制 */
.chart-size-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.size-preset-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.size-preset-btn:hover,
.size-preset-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 数据表格视图 */
.chart-data-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.chart-data-table {
    display: none;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: white;
    border-radius: 8px;
}

.chart-data-table.show {
    display: block;
}

.chart-data-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.chart-data-table th,
.chart-data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.chart-data-table th {
    background: #f9fafb;
    font-weight: 600;
}

/* ===== 新增的两栏布局样式 ===== */
.chart-modal-content-wrapper {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
}

.chart-modal-left-panel {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: auto;
    min-width: 300px;
    transition: width 0.3s ease;
}

/* 当AI面板显示时调整左栏宽度 */
.chart-modal-content-wrapper:has(.chart-modal-right-panel.show) .chart-modal-left-panel {
    width: calc(100% - 400px);
}

.chart-modal-right-panel {
    flex: 0 0 auto;
    width: 400px;
    min-width: 300px;
    max-width: 70%;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s ease;
}

.chart-modal-right-panel.show {
    display: flex;
}

/* ===== AI聊天面板样式 ===== */
.ai-chat-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 移除表头样式 */
.ai-chat-header {
    display: none;
}

/* 新的关闭按钮样式 */
.ai-chat-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 12px;
}

.ai-chat-close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.05);
}

.ai-chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 40px; /* 为关闭按钮留出空间 */
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    scroll-behavior: smooth;
}

.ai-chat-welcome {
    text-align: center;
    padding: 16px;
    color: #64748b;
}

.welcome-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
    font-size: 18px;
}

.ai-chat-welcome .welcome-text {
    margin: 0 0 12px;
    line-height: 1.4;
    font-size: 0.9rem;
    font-size: 0.9rem;
}

.welcome-suggestions {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.welcome-suggestions li {
    padding: 8px 12px;
    margin: 6px 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.welcome-suggestions li:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(4px);
}

.ai-chat-message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.ai-chat-message.user {
    align-items: flex-end;
}

.ai-chat-message.ai {
    align-items: flex-start;
}

.ai-message-content {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    line-height: 1.5;
    font-size: 0.9rem;
    word-wrap: break-word;
}

.ai-chat-message.user .ai-message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-chat-message.ai .ai-message-content {
    background: white;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

.ai-message-time {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
    padding: 0 4px;
}

.ai-chat-input-area {
    padding: 16px 20px 20px;
    border-top: 1px solid #e2e8f0;
    background: white;
}

.ai-chat-input-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.ai-chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}

.ai-chat-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ai-chat-send {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-chat-send:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ai-chat-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ai-chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #64748b;
}

.ai-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    color: #10b981;
}

.ai-status-indicator.connecting {
    color: #f59e0b;
    animation: pulse 1.5s infinite;
}

.ai-status-indicator.error {
    color: #ef4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .chart-modal-right-panel {
        width: 350px;
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    .chart-modal-content {
        width: 98%;
        height: 98vh;
        max-height: 98vh;
    }
    
    .chart-modal-content-wrapper {
        flex-direction: column;
    }
    
    .chart-modal-right-panel {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 50%;
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }
    
    .chart-modal-left-panel {
        height: 50%;
    }
}

/* ===== 加载状态样式 ===== */
.ai-message-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    max-width: 85%;
    color: #64748b;
    font-size: 0.9rem;
}

.ai-loading-dots {
    display: flex;
    gap: 4px;
}

.ai-loading-dots span {
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 50%;
    animation: loading-bounce 1.4s infinite ease-in-out both;
}

.ai-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.ai-loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* ===== 滚动条样式 ===== */
.ai-chat-messages::-webkit-scrollbar,
.chart-modal-left-panel::-webkit-scrollbar {
    width: 6px;
}

.ai-chat-messages::-webkit-scrollbar-track,
.chart-modal-left-panel::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.ai-chat-messages::-webkit-scrollbar-thumb,
.chart-modal-left-panel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.ai-chat-messages::-webkit-scrollbar-thumb:hover,
.chart-modal-left-panel::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 深色主题适配 */
.dark-theme .chart-modal-content {
    background: #1f2937;
    color: #f9fafb;
}

.dark-theme .chart-modal-header {
    border-bottom-color: #374151;
}

.dark-theme .chart-modal-body {
    background: #111827;
}

.dark-theme .chart-modal-toolbar {
    background: #1f2937;
    border-color: #374151;
}

.dark-theme .chart-modal-toolbar .toolbar-group {
    border-color: #374151;
}

.dark-theme .chart-modal-toolbar label {
    color: #d1d5db;
}

.dark-theme .chart-modal-toolbar select {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.dark-theme .chart-modal-container {
    background: #1f2937;
    border-color: #374151;
}

.dark-theme .chart-data-table {
    background: #1f2937;
}

.dark-theme .chart-data-table th {
    background: #374151;
    color: #d1d5db;
}

/* 响应式设计增强 */
@media (max-width: 1024px) {
    .chart-modal-content {
        width: 95%;
        min-height: 600px;
    }
    
    .chart-modal-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .chart-modal-toolbar .toolbar-group {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 10px 0;
    }
    
    .chart-modal-toolbar .toolbar-group:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .chart-modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .chart-modal-header {
        padding: 15px 20px;
        border-radius: 0;
    }
    
    .chart-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .chart-modal-body {
        padding: 20px;
    }
    
    .chart-modal-container {
        min-height: 300px;
        padding: 15px;
    }
    
    .chart-modal-toolbar {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .chart-modal-toolbar .toolbar-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .chart-modal-toolbar select {
        min-width: auto;
    }
}

/* 动画效果增强 */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(60px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(60px);
    }
}

.chart-modal.show .chart-modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-modal.closing .chart-modal-content {
    animation: modalSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 加载状态 */
.chart-modal-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 12px;
}

.chart-modal-loading .loading-spinner {
    text-align: center;
}

.chart-modal-loading .loading-spinner i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 10px;
}

.chart-modal-loading .loading-spinner p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.dark-theme .chart-modal-loading {
    background: rgba(31, 41, 55, 0.9);
}

.dark-theme .chart-modal-loading .loading-spinner p {
    color: #d1d5db;
}

/* 帮助模态框样式 */
.help-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: all 0.3s ease;
}

.help-modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.help-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.help-modal.show .help-modal-content {
    transform: scale(1) translateY(0);
}

.help-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.help-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.help-modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.help-section {
    margin-bottom: 25px;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h4 {
    margin: 0 0 15px 0;
    color: #374151;
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.help-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.shortcut-item kbd {
    background: #374151;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 2px;
}

.shortcut-item span {
    color: #6b7280;
    font-size: 0.9rem;
}

/* 深色主题适配 */
.dark-theme .help-modal-content {
    background: #1f2937;
    color: #f9fafb;
}

.dark-theme .help-section h4 {
    color: #d1d5db;
    border-bottom-color: #374151;
}

.dark-theme .shortcut-item {
    background: #374151;
    border-color: #4b5563;
}

.dark-theme .shortcut-item kbd {
    background: #111827;
    color: #f9fafb;
}

.dark-theme .shortcut-item span {
    color: #d1d5db;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .help-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .help-modal-header {
        padding: 15px 20px;
    }
    
    .help-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .help-modal-body {
        padding: 20px;
    }
    
    .shortcut-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        text-align: center;
    }
}

/* ===== 可拖拽分割条样式 ===== */
.chart-modal-splitter {
    width: 5px;
    background: #e2e8f0;
    cursor: col-resize;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    border-radius: 3px;
    margin: 0 2px;
}

.chart-modal-splitter:hover {
    background: #cbd5e1;
    width: 6px;
}

.chart-modal-splitter.dragging {
    background: #667eea;
    width: 6px;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

.splitter-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    opacity: 0;
    transition: all 0.2s ease;
    color: #64748b;
    font-size: 12px;
    pointer-events: none;
}

.chart-modal-splitter:hover .splitter-handle {
    opacity: 1;
}

.chart-modal-splitter.dragging .splitter-handle {
    opacity: 1;
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 用户选择禁用 - 拖拽时避免文字被选中 */
.chart-modal-splitter.dragging,
.chart-modal-splitter.dragging * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 拖拽时的全局样式 */
body.splitter-dragging {
    cursor: col-resize !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body.splitter-dragging * {
    pointer-events: none;
}

body.splitter-dragging .chart-modal-splitter {
    pointer-events: auto;
}

/* 深色主题适配 */
.dark-theme .chart-modal-splitter {
    background: #374151;
}

.dark-theme .chart-modal-splitter:hover {
    background: #4b5563;
}

.dark-theme .chart-modal-splitter.dragging {
    background: #3b82f6;
}

.dark-theme .splitter-handle {
    background: #1f2937;
    border-color: #374151;
    color: #9ca3af;
}

.dark-theme .chart-modal-splitter.dragging .splitter-handle {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* 响应式设计 - 移动端隐藏分割条 */
@media (max-width: 768px) {
    .chart-modal-splitter {
        display: none;
    }
}

/* ===== 岗位详情模态框样式 ===== */
.job-detail-modal {
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-detail-modal.show {
    opacity: 1;
}

.job-detail-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.job-detail-modal.show .job-detail-modal-content {
    transform: scale(1) translateY(0);
}

.job-detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.job-detail-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-detail-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.job-detail-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(90deg);
}

.job-detail-modal-body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
    background: #fafbfc;
}

.job-detail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6b7280;
}

.job-detail-loading i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 16px;
}

.job-detail-loading p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* 岗位详情内容样式 */
.job-detail-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.job-detail-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.job-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.job-company {
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
    margin: 0 0 16px 0;
}

/* 新增：操作栏 */
.job-detail-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 16px 0;
}
.job-detail-actions .left,
.job-detail-actions .right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}
.icon-btn i { color: #667eea; }
.icon-btn:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.08); transform: translateY(-1px); }

.job-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.job-meta-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: white; border-radius: 8px; border: 1px solid #e5e7eb; }
.job-meta-item i { font-size: 1rem; color: #667eea; width: 20px; text-align: center; }
.job-meta-item span { font-weight: 500; color: #374151; font-size: 0.95rem; }

.job-detail-body { padding: 30px; }

.job-section { margin-bottom: 24px; }
.job-section:last-child { margin-bottom: 0; }

.job-section-title { font-size: 1.1rem; font-weight: 700; color: #1f2937; margin: 0; display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 2px solid #e5e7eb; }
.job-section-title i { color: #667eea; }

/* 新增：details/summary 美化 */
details.job-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 16px; }
details.job-section[open] { box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
details.job-section > summary.job-section-title { list-style: none; cursor: pointer; border-bottom: none; padding: 4px 0; }
details.job-section > summary.job-section-title::-webkit-details-marker { display: none; }
details.job-section > summary.job-section-title::after { content: '\25BC'; margin-left: auto; font-size: 0.8rem; color: #9ca3af; transition: transform 0.2s ease; }
details.job-section[open] > summary.job-section-title::after { transform: rotate(180deg); }

.job-description { font-size: 1rem; line-height: 1.7; color: #374151; margin: 10px 0 0 0; white-space: pre-wrap; }

.job-skills-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.job-skill-tag { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; transition: all 0.2s ease; }
.job-skill-tag:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); }

.job-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.job-info-item { background: #f8fafc; padding: 20px; border-radius: 10px; border: 1px solid #e5e7eb; }
.job-info-label { font-weight: 600; color: #6b7280; font-size: 0.9rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.job-info-value { font-size: 1.1rem; font-weight: 600; color: #1f2937; }
.job-info-value.salary { color: #059669; font-size: 1.2rem; }
.job-info-value.remote-yes { color: #059669; }
.job-info-value.remote-no { color: #dc2626; }

.job-benefits { display: flex; flex-wrap: wrap; gap: 12px; }
.job-benefit-tag { background: #ecfdf5; color: #065f46; padding: 8px 16px; border-radius: 16px; font-size: 0.9rem; font-weight: 500; border: 1px solid #a7f3d0; display: flex; align-items: center; gap: 6px; }
.job-benefit-tag i { color: #059669; }

/* 响应式设计 */
@media (max-width: 768px) {
    .job-detail-modal-content { width: 95%; max-width: 95%; margin: 20px; }
    .job-detail-modal-header { padding: 20px; }
    .job-detail-modal-header h3 { font-size: 1.3rem; }
    .job-detail-modal-body { padding: 20px; }
    .job-detail-header { padding: 20px; }
    .job-title { font-size: 1.5rem; }
    .job-company { font-size: 1.1rem; }
    .job-meta-grid { grid-template-columns: 1fr; gap: 12px; }
    .job-detail-body { padding: 20px; }
    .job-info-grid { grid-template-columns: 1fr; gap: 16px; }
    .job-skills-grid { gap: 6px; }
    .job-skill-tag { padding: 6px 12px; font-size: 0.85rem; }
}

/* 深色主题适配 */
.dark-theme .job-detail-modal-content { background: #1f2937; color: #f9fafb; }
.dark-theme .job-detail-modal-header { border-bottom-color: #374151; }
.dark-theme .job-detail-modal-body { background: #111827; }
.dark-theme .job-detail-content { background: #1f2937; border-color: #374151; }
.dark-theme .job-detail-header { background: linear-gradient(135deg, #374151 0%, #4b5563 100%); }
.dark-theme .job-title { color: #f9fafb; }
.dark-theme .job-company { color: #a5b4fc; }
.dark-theme .job-meta-item { background: #374151; border-color: #4b5563; }
.dark-theme .job-meta-item span { color: #d1d5db; }
.dark-theme .job-section-title { color: #f9fafb; border-bottom-color: #374151; }
.dark-theme .job-description { color: #d1d5db; }
.dark-theme details.job-section { background: #1f2937; border-color: #374151; }
.dark-theme .job-info-item { background: #374151; border-color: #4b5563; }
.dark-theme .job-info-label { color: #9ca3af; }
.dark-theme .job-info-value { color: #f9fafb; }

/* 表格标题单元更友好换行与副标题 */
.job-title-cell {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    word-break: break-word;
    white-space: normal;
}
.job-title-sub {
    font-size: 0.82em;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
    word-break: break-word;
    white-space: normal;
}

/* 胶囊徽章样式：远程/现场 与 日程类型 */
.job-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.remote-badge,
.schedule-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.remote-badge i,
.schedule-badge i { font-size: 0.9rem; }
.remote-badge:hover,
.schedule-badge:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* 远程状态配色 */
.remote-badge.remote-yes { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.remote-badge.remote-no { background: #f3f4f6; color: #374151; border-color: #e5e7eb; }
.remote-badge.remote-yes i { color: #059669; }
.remote-badge.remote-no i { color: #6b7280; }

/* 日程类型徽章 */
.schedule-badge { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.schedule-badge i { color: #6366f1; }

/* 详情页标题允许换行 */
.job-title { word-break: break-word; white-space: normal; }

/* 暗色主题适配徽章 */
.dark-theme .remote-badge.remote-yes { background: rgba(16,185,129,0.15); color: #a7f3d0; border-color: rgba(16,185,129,0.35); }
.dark-theme .remote-badge.remote-no { background: #374151; color: #e5e7eb; border-color: #4b5563; }
.dark-theme .remote-badge i { color: #a5b4fc; }
.dark-theme .schedule-badge { background: rgba(99,102,241,0.15); color: #c7d2fe; border-color: rgba(99,102,241,0.35); }

/* 覆盖早先JS注入的朴素远程样式（保证优先级）*/
.remote-badge { padding: 6px 10px !important; border-radius: 999px !important; font-size: 0.85rem !important; font-weight: 600 !important; }

/* 表格"远程"列紧凑显示，不影响详情页 */
.remote-col { text-align: center; vertical-align: middle; }
.remote-col .remote-badge.compact {
    padding: 4px 8px !important;
    font-size: 0.78rem !important;
    border-radius: 999px;
    line-height: 1;
}
.remote-col .remote-badge.compact i { font-size: 0.85rem; }
.remote-col .remote-badge.compact.remote-no { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }
.remote-col .remote-badge.compact.remote-yes { background: #e6fef3; color: #047857; border-color: #a7f3d0; }

/* 表格行高度与徽章对齐的小优化 */
#jobsTableBody tr td { vertical-align: middle; }

/* 能力雷达图容器 */
#capabilityRadarContainer {
    position: relative;
    width: 100%;
    min-height: 300px;
    padding: 8px 10px 2px 10px;
}

#capabilityRadarContainer canvas {
    width: 100% !important;
    height: 100% !important;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}

/* 竞争力指标进度条美化 */
.competitiveness-metrics .metric-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.competitiveness-metrics .metric-info {
    flex: 0 0 120px;
    color: var(--text-secondary);
    font-weight: 500;
}

.competitiveness-metrics .metric-bar {
    flex: 1;
    height: 10px;
    background: linear-gradient(90deg, #eef2ff 0%, #f8fafc 100%);
    border-radius: 999px;
    overflow: hidden;
}

.competitiveness-metrics .metric-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 999px;
    transition: width 0.6s ease;
}

.competitiveness-metrics .metric-score {
    flex: 0 0 70px;
    text-align: right;
    color: var(--text-primary);
    font-weight: 600;
}

/* 卡片外观微调 */
.analysis-card .card-header h3 i {
    color: #667eea;
}

.analysis-card .card-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-card .card-content {
    padding-top: 10px;
}

/* ===== 推荐职位 列表样式 ===== */
.job-list { display: flex; flex-direction: column; gap: 10px; }
.job-item { display: grid; grid-template-columns: minmax(0,1fr) max-content; column-gap: 16px; align-items: center; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--panel-bg); transition: all .2s ease; }
.job-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); border-color: var(--primary-color, #6366f1); }
.job-item-title { display: flex; align-items: center; gap: 8px; }
.job-item-title h4 { margin: 0; font-size: 16px; line-height: 1.2; }
.job-item-main { min-width: 0; }
.job-item-company { margin-top: 4px; color: var(--text-secondary); display: flex; gap: 8px; flex-wrap: wrap; }
.job-item-tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.job-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 160px; }
.job-match-pill { background: linear-gradient(135deg, #10b981, #22c55e); color: #fff; padding: 4px 10px; border-radius: 999px; font-weight: 600; min-width: 72px; text-align: center; font-variant-numeric: tabular-nums; }
.job-item-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.job-item-actions .btn { margin-left: 0; }
.separator { opacity: .5; }

/* ===== 对比模态 美化 ===== */
.compare-modal-content { max-width: 1200px; width: 92vw; border-radius: 14px; }
.compare-toolbar { display:flex; justify-content: space-between; align-items:center; margin-bottom: 12px; }
.compare-table-wrapper { overflow: auto; max-height: 70vh; border: 1px solid var(--border-color); border-radius: 12px; background: var(--panel-bg); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare-table thead th { position: sticky; top: 0; background: var(--panel-alt-bg); z-index: 2; padding: 10px 12px; text-align: left; box-shadow: inset 0 -1px 0 var(--border-color); }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--border-color); padding: 10px 12px; text-align: left; vertical-align: top; }
.compare-table .row-label { width: 140px; color: var(--text-secondary); background: var(--panel-alt-bg); position: sticky; left: 0; z-index: 3; }
.compare-table tbody tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.compare-table td.diff { background: rgba(239, 68, 68, 0.08); border-left: 3px solid #ef4444; }
.load-more-wrapper { display: flex; justify-content: center; margin-top: 12px; }

/* 推荐容器固定高度与滚动 */
#recommendedPositions {
  max-height: 520px;
  overflow: auto;
  padding-right: 6px; /* 留出滚动条空间 */
}
#recommendedPositions .job-item { padding: 10px 12px; border-radius: 10px; }
#recommendedPositions .job-item:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); }
#recommendedPositions .job-item-title h4 { font-size: 15px; }
#recommendedPositions .job-item-tags .job-tag { font-size: 12px; padding: 3px 8px; }

#recommendedPositions::-webkit-scrollbar { width: 8px; height: 8px; }
#recommendedPositions::-webkit-scrollbar-thumb { background: rgba(99,102,241,.6); border-radius: 8px; }
#recommendedPositions::-webkit-scrollbar-track { background: transparent; }